<!-- login 页面内容 -->
<div class="login container" ng-controller="loginCtrl">
    <div class="row">
        <div class="col-lg-offset-4 col-lg-4 col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6 col-xs-12">
            <div class="panel login-panel yf-shadow">
                <div class="panel-body text-center">
                    <img src="components/footer/imgs/logo.png" alt="" class=" yf-shadow logo">

                    <h4>登录窗管家</h4>

                    <form name="login1form" class="loginform" role="form" autocomplete="false" novalidate ng-submit="login(login1form.$invalid, user);">
                        <div class="col-sm-offset-1 col-sm-10 col-xs-12">
                            <div class="form-group">
                                <input type="text" ng-model="user.login" name="login" class="form-control bottom_input" ng-pattern="/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]|1[34578]\d{9}$/" placeholder="手机号或邮箱" autocomplete="false" required>
                            </div>
                            <div class="form-group error-container" ng-show="islogin && (login1form.login.$error.pattern || login1form.login.$error.required)">
                                请输入有效手机号或邮箱！
                            </div>
                        </div>

                        <div class="col-sm-offset-1 col-sm-10 col-xs-12">
                            <div class="form-group">
                                <input type="password" ng-model="user.password" name='password' class="form-control bottom_input" ng-pattern="/^\S{6,20}$/" placeholder="密码" autocomplete="false" required>
                            </div>
                            <div class="form-group error-container" ng-show="islogin && (login1form.password.$error.pattern || login1form.password.$error.required)">
                                请输入有效密码！
                            </div>
                        </div>


                        <div class="col-sm-offset-1 col-sm-10 col-xs-12">
                            <button type="submit" class="btn mt_btn_main btn-block yf-shadow">立即登录</button>
                        </div>

                        <div class="col-sm-offset-1 col-sm-10 col-xs-12 login_links">
                            <div class="pull-left">
                                没有账号？
                                <a ui-sref="register">去注册</a>
                            </div>

                            <div class="pull-right">
                                <a ui-sref='forgetcode'>忘记密码</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
